package com.hy.admin.dao;

import com.hy.admin.entity.AnswerEntity;
import org.springframework.stereotype.Repository;

@Repository
public interface AnswerDao {
    int deleteByPrimaryKey(Long id);

    int insert(AnswerEntity record);

    int insertSelective(AnswerEntity record);

    AnswerEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AnswerEntity record);

    int updateByPrimaryKey(AnswerEntity record);

    AnswerEntity selectByUuid(String uuid);

    /**
     * 根据问题查询答案
     * @param questionId
     * @return
     */
    AnswerEntity selectByQueId(Long questionId);
}